package com.lxh.adapter;

import java.util.Map;

/**
 * 适配器
 * Create by lxh on 2020/2/10
 */
public class OuterUserInfo extends OuterUser implements IUserInfo{

    private Map baseInfo = super.getBaseUserInfo();
    private Map homeInfo = super.getHomeUserInfo();
    private Map officeInfo = super.getOfficeUserInfo();

    @Override
    public String getUserName() {
        String userName = (String)this.baseInfo.get("userName");
        System.out.println(userName);
        return null;
    }

    @Override
    public String getHomeAddress() {
        String address = (String) homeInfo.get("homeAddress");
        System.out.println(address);
        return null;
    }

    @Override
    public String getMobileNumber() {
        String mobileNumber = (String)this.baseInfo.get("mobileNumber");
        System.out.println(mobileNumber);
        return null;
    }

    @Override
    public String getOfficeTelNumber() {
        String officeTelNumber = (String)this.officeInfo.get("officeTelNumber");
        System.out.println(officeTelNumber);
        return null;
    }

    @Override
    public String getJobPosition() {
        String jobPosition = (String)this.officeInfo.get("jobPosition");
        System.out.println(jobPosition);
        return null;
    }

    @Override
    public String getHomeTelNumber() {
        String homeTelNumber = (String)this.homeInfo.get("homeTelNumber");
        System.out.println(homeTelNumber);
        return null;
    }
}
